/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: LiYansheng
 * @Date: 2022-04-19 14:21:33
 * @LastEditors: CoderXZ
 * @LastEditTime: 2022-05-11 13:08:27
 */
import request from '@/utils/request'

export function getSchoolList(query){
    return request({
        url:'/school',
        method:'post',
        data:{
            no:query.no,
            name:query.name,
            pageIndex:query.pageIndex,
            pageSize:query.pageSize
        },
    })
}

export function deleteSchool(id){
    return request({
        url:'/school/delete',
        method:'post',
        data:{
            id:id
        }
    })
}

export function updateSchool(form){
    return request({
        url:'/school/update',
        method:'post',
        data:{
            id:form.id,
            no:form.no,
            name:form.name,
            status:form.status
        }
    })
}

export function addSchool(form){
    return request({
        url:'/school/add',
        method:'post',
        data:{
            no:form.no,
            name:form.name,
            status:form.status
        }
    })
}

// 批量删除
export function delList(array){
    return request({
        url:'/school/delList',
        method:'post',
        data:{
            schoolIds:array
        }
    })
}


